package com.getword.mongodao;

import com.getword.domain.School;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

import java.util.List;

public interface SchoolRepository extends MongoRepository<School, String> {
    List<School> findSchoolsByCountyIdOrderByFirstPy(Integer countyId);
    long count();
    School findSchoolById(Long id);
}
